lcWndGetEntsByRect | Home |
int lcWndGetEntsByRect ( HANDLE hLcWnd, double Left, double Bottom, double Right, double Top, BOOL bCross, int nMaxEnts ); |
hLcWnd | |
Handle to LiteCAD graphics window. | |
Left Bottom Right Top | |
Specify a selecting rectangle coordinates, on the view coordinate space. In order to use currenly visible area, specify zero for all parameters. | |
bCross | |
If TRUE, then the function will retrieve entities which are inside or crossed by the specified rectangle. If FALSE, then the function will retrieve entities which are completely inside of the specified rectangle. | |
nMaxEnts | |
Maximal number of entities that can be retrieved.
You can specify -1 to retrieve unlimited number of entities. In order to free the inner memory buffer set 0. |
A number of found entities. |
Found entities can be retrieved by the lcWndGetEntity function. |
Code sample, lcWndGetEntsByPoint, lcWndGetEntByPoint2 |